package com.gxa.entity.commlife;

import com.baomidou.mybatisplus.annotation.*;
import com.gxa.entity.user.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-12 11:18:00
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_coupon_use")
@ApiModel(value = "CouponUse对象", description = "")
public class CouponUse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键 ")
    @TableId(value = "cu_id", type = IdType.AUTO)
    private Integer cuId;

    @ApiModelProperty(value = "优惠劵管理外键 ")
    @TableField("coupon_id")
    private CouponManagement couponManagement;

    @ApiModelProperty(value = "领取时间 ")
    @TableField("collection_time")
    private Date collectionTime;

    @ApiModelProperty(value = "使用时间 ")
    @TableField("use_time")
    private Date useTime;

    @ApiModelProperty(value = "使用订单 ")
    @TableField("use_order")
    private String useOrder;

    @ApiModelProperty(value = "用户外键")
    @TableField("user_id")
    private User user;

    @ApiModelProperty(value = "联系电话 ")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "假删除")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

}
